package ModelLayer;

/**
 * Person class
 */
public class Person {
    // instance variables - replace the example below with your own
    private int id;
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String phone;
    private String email;

    /**
     * Constructor for objects of class Person
     */
    public Person() {
    }

    public Person(int id, String name, String address, String postalCode, String city, String phone, String email) {
        setId(id);
        setName(name);
        setAddress(address);
        setPostalCode(postalCode);
        setCity(city);
        setPhone(phone);
        setEmail(email);
    }

    //get methods
    public int getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getAddress() {
        return this.address;
    }

    public String getPostalCode() {
        return this.postalCode;
    }

    public String getCity() {
        return this.city;
    }

    public String getPhone() {
        return this.phone;
    }

    public String getEmail() {
        return this.email;
    }

    //set methods
    public void setId(int id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setPostalCode(String postalCode) {
        this.postalCode = postalCode;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}